Nginx

推荐列表 站点导航

当前位置:首页 > 服务器技术 > Nginx >

linux下 nginx监控问题

来源:网络整理  作者:网友投稿  发布时间:2020-12-29 00:06
这篇文章主要介绍了linux 下nginx监控问题,本文给大家介绍的非常详细,具有一定的参考借鉴价值,需要的朋友可以参...

nginx安装 保证虚拟机能上网: 1、root用户登录 2、查看nginx安装信息:yum info nginx 3、如果找不到nginx信息。

谢谢! 原文链接:https://blog.csdn.net/qq_43264006/article/details/101313314 ,烦请注明出处,如果大家有任何疑问请给我留言。

则安装nginx命令:yum install nginx 6、查看 如果出现nginx的页面就ok咯 nginx.conf配置文件详情 ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main $remote_addr - $remote_user [$time_local] $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for; log_format liuhao $remote_addr^A$msec^A$http_host^A$request_uri; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; #gzip on; # include /etc/nginx/conf.d/*.conf; server { listen 80; server_name localhost; #access_log /var/log/nginx/host.access.log main; location ~ .jpg { root /data/www/web; index index.html index.htm; access_log /var/log/nginx/gp1918.log liuhao; } location ~ / { root /usr/share/nginx/html; index index.html index.htm; access_log /var/log/nginx/access.log main; } } } 在/etc/nginx下的nginx.conf是自定义配置文件 直接配置以上内容 在nginx/conf.d下的默认配置文件 不用修改 替换完后 重启NGINX服务 service nginx restart 分别开启两个窗口 进行监控 ? 1 2 tail -f /var/log/nginx/access.log tail -f /var/log/nigx/gp1918.log gp1918.log.log 需要自己创建 mkdir /data/www/web/test.jpg; 需要自己创建 在此目录下 创建一个jpg文件 或者直接放一个图片 在网页输入自己的 ip/test.jpg 最后看监控 另外一个监控是 当你访问ip时 才有 总结 以上所述是小编给大家介绍的linux下 nginx监控问题,欢迎转载。

则执行如下: ? 1 rpm -ivh 4、再查看nginx的安装信息 5、有咯信息,希望对大家有所帮助,小编会及时回复大家的,在此也非常感谢大家对聚合云库文库网站的支持! 如果你觉得本文对你有帮助,。

相关热词:

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://v30.fanwenzhu.com/server/nginx/10454.shtml

最新文章
并且强制用 HTTPS 访问 fa 并且强制用 HTTPS 访问 fa

时间:2021-01-14

可以控制访问量 可以控制访问量

时间:2021-01-14

(通配符在前) ③server (通配符在前) ③server

时间:2021-01-14

Nginx环境下WordPress的多站点 Nginx环境下WordPress的多站点

时间:2021-01-05

nginx keepalive的具体使用 nginx keepalive的具体使用

时间:2021-01-05

Nginx的信号控制 Nginx的信号控制

时间:2021-01-05

win10上安装nginx的方法步骤 win10上安装nginx的方法步骤

时间:2020-12-29

linux下 nginx监控问题 linux下 nginx监控问题

时间:2020-12-29

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

linux下 nginx监控问题

2020-12-29 编辑:网友投稿

nginx安装 保证虚拟机能上网: 1、root用户登录 2、查看nginx安装信息:yum info nginx 3、如果找不到nginx信息。

谢谢! 原文链接:https://blog.csdn.net/qq_43264006/article/details/101313314 ,烦请注明出处,如果大家有任何疑问请给我留言。

则安装nginx命令:yum install nginx 6、查看 如果出现nginx的页面就ok咯 nginx.conf配置文件详情 ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main $remote_addr - $remote_user [$time_local] $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for; log_format liuhao $remote_addr^A$msec^A$http_host^A$request_uri; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; #gzip on; # include /etc/nginx/conf.d/*.conf; server { listen 80; server_name localhost; #access_log /var/log/nginx/host.access.log main; location ~ .jpg { root /data/www/web; index index.html index.htm; access_log /var/log/nginx/gp1918.log liuhao; } location ~ / { root /usr/share/nginx/html; index index.html index.htm; access_log /var/log/nginx/access.log main; } } } 在/etc/nginx下的nginx.conf是自定义配置文件 直接配置以上内容 在nginx/conf.d下的默认配置文件 不用修改 替换完后 重启NGINX服务 service nginx restart 分别开启两个窗口 进行监控 ? 1 2 tail -f /var/log/nginx/access.log tail -f /var/log/nigx/gp1918.log gp1918.log.log 需要自己创建 mkdir /data/www/web/test.jpg; 需要自己创建 在此目录下 创建一个jpg文件 或者直接放一个图片 在网页输入自己的 ip/test.jpg 最后看监控 另外一个监控是 当你访问ip时 才有 总结 以上所述是小编给大家介绍的linux下 nginx监控问题,欢迎转载。

则执行如下: ? 1 rpm -ivh 4、再查看nginx的安装信息 5、有咯信息,希望对大家有所帮助,小编会及时回复大家的,在此也非常感谢大家对聚合云库文库网站的支持! 如果你觉得本文对你有帮助,。

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://v30.fanwenzhu.com/server/nginx/10454.shtml

相关文章

风云图片

推荐阅读

返回Nginx频道首页